<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>04_opacity</title>
    <style>
      .box {
        width: 200px;
        height: 200px;
        background-color: orange;
        opacity: 0.5;
        /* outlie外轮廓，他不参与计算 */
        outline: 20px solid red;
      }

      img {
        width: 200px;
        opacity: 0.3;
      }

      .box1 {
        width: 300px;
        height: 300px;
        background: url(../imgs/IMG_3123.jpeg) center no-repeat;
        background-size: cover;
        opacity: 0.5;
        border-radius: 50%;

        /* 超出padding-box来裁剪 */
        /* background-clip: padding-box; */
      }

      h3 {
        text-align: center;
        text-shadow: 0 0 10px greenyellow;
        -webkit-text-stroke: 3px black;
        color: transparent;
      }

      .textoverf {
        width: 200px;
        height: 300px;
        background-color: orange;
      }
      p {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    </style>
  </head>
  <body>
    <div class="box">你好</div>
    <br />
    <img src="../imgs/IMG_3131.jpeg" alt="" />

    <div class="box1"></div>

    <h3>JavaScript JavaScript JavaScript</h3>
    <div class="textoverf">
      <p>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi dolorem
        nostrum ad, cum sit rerum, autem temporibus dicta labore nulla eius eum
        quibusdam at. Nobis n nostrum ad, cum sit rerum, autem temporibus dicta
        labore nulla eius eum quibusdam at. Nobis n nostrum ad, cum sit rerum,
        autem temporibus dicta labore nulla eius eum quibusdam at. Nobis n
        nostrum ad, cum sit rerum, autem temporibus dicta labore nulla eius eum
        quibusdam at. Nobis nihil aperiam quia? Error, tempora!
      </p>
    </div>
  </body>
</html>
